﻿using System;
using OdaOperation.Model;

namespace OdaOperation.Core.Parameters
{
    public class TableParameter : AbstractParameter
    {
        public TableSize TableSize;

        public TableModelTitle Title { get; set; }

        public double FontSize { get; set; } = 3.75;


        public string FontStyle { get; set; } = "F-HZTXT";


        public TableData TableData { get; set; }

        public override void Check()
        {
            base.Check();
            if (TableData == null)
            {
                throw new ArgumentNullException("TableData");
            }

            if (TableSize == null)
            {
                throw new ArgumentNullException("TableSize");
            }
        }
    }
}